package com.clz.Dao.Impl;

import com.clz.Dao.VoteDao;
import com.clz.util.JDBCUtils;
import org.springframework.jdbc.core.JdbcTemplate;

public class VoteDaoImpl implements VoteDao {
    private JdbcTemplate jdbcTemplate = JDBCUtils.getJdbcTemplate();

    @Override
    public int updateVoteByID(Integer id) {
        String sql ="update t_vote set times=times+10 where id =?";
        return  jdbcTemplate.update(sql,id);
    }
}
